/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package strategies;

import entityclasses.Session;
import javax.swing.DefaultListModel;
import entityclasses.Person;

/**
 *
 * @author umutcan
 */
public class FriendListingStrategy implements IListStrategy {

    public DefaultListModel list() {
        
        DefaultListModel arkadaslarListModel = new DefaultListModel();
        
        for (Person p : Session.currentUser.getProfile().getFriends())
        {
            arkadaslarListModel.addElement(p);
        }
        
        return arkadaslarListModel;
    }
    
}
